﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BDS3M.Controls
{
    public partial class BoxManagerEditSanGiaoDich : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Username"] == null)
            {
                Response.Redirect("/home");
            }
            if (!IsPostBack)
            {
                //string username = Session["Username"].ToString();
                //DataTable dt = DAL.DCollector.DBCollector.Instance.StoredSelectAllTableWhereName("tbl_SanGiaoDich", "SanGiaoDich_TieuDe", username);
                //txtUsername.Text = dt.Rows[0]["Employee_User"].ToString();
                //txtEmail1.Text = dt.Rows[0]["Employee_Email"].ToString();
                //txtName.Text = dt.Rows[0]["Employee_FullName"].ToString();


                //ListItem lt = new ListItem((Convert.ToDateTime(dt.Rows[0]["Employee_BirthDay"])).Day.ToString(), (Convert.ToDateTime(dt.Rows[0]["Employee_BirthDay"])).Day.ToString());
                //ddlDay.Items.Add(lt);
                //lt = new ListItem((Convert.ToDateTime(dt.Rows[0]["Employee_BirthDay"])).Month.ToString(), (Convert.ToDateTime(dt.Rows[0]["Employee_BirthDay"])).Month.ToString());
                //ddlMonth.Items.Add(lt);
                //lt = new ListItem((Convert.ToDateTime(dt.Rows[0]["Employee_BirthDay"])).Year.ToString(), (Convert.ToDateTime(dt.Rows[0]["Employee_BirthDay"])).Year.ToString());
                //ddlYear.Items.Add(lt);

                //txtCompany.Text = dt.Rows[0]["Employee_Company"].ToString();
                //ddlSex.Text = dt.Rows[0]["Employee_Sex"].ToString();
                //txtAddress.Text = dt.Rows[0]["Employee_Address"].ToString();
                //txtDienThoai.Text = dt.Rows[0]["Employee_HomePhone"].ToString();
                //txtDiDong.Text = dt.Rows[0]["Employee_PhoneNumber"].ToString();

            }
        }
    }
}